<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateDepositsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('deposits', function (Blueprint $table) {
            $table->id();
            $table->char('order_id',15)->comment('提现订单id');
            $table->bigInteger('member_id')->unsigned()->comment('用户id');
            $table->integer('money')->unsigned()->comment('提现金额');
            $table->tinyInteger('status')->unsigned()->default(0)->comment('提现状态（0=提现中，1=提现成功，2=拒绝提现，9=删除）');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('deposits');
    }
}
